package dr.joketalker.controller.view;

import android.content.Context;
import android.view.LayoutInflater;
import android.widget.LinearLayout;
import android.widget.TextView;
import dr.joketalker.R;

public class OneLineView extends LinearLayout{

	public OneLineView(Context c,int value) {
		super(c);
		LayoutInflater  mInflater = (LayoutInflater)c.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
	    mInflater.inflate(R.layout.one_line, this, true);
	    setValue(value);
	}
	
	public void setValue(int value) {
		TextView tv = (TextView)this.findViewById(R.id.tvValue);
		tv.setText(value);
	}
}
